import { ref } from "vue"
// 定义options
const option = {
    legend: {
        textStyle: {
            color: '#dbdbdb'
        },
        icon: 'circle'
    },
    tooltip: {
        trigger: 'axis',
        showContent: true
    },
    grid: { top: '25%' },
    xAxis: { type: 'category' },
    series: [],
    yAxis: { gridIndex: 0 },
    // dataset: {
    //     source: []
    // }
}
export const Lineoption = ref({
    ...JSON.parse(JSON.stringify(option)),
    yAxis: { gridIndex: 0 },
    dataset: {
        source: []
    }
});
export const baroption = ref({
    ...JSON.parse(JSON.stringify(option)),
    yAxis: {
        type: 'value'
    },
})
